<?php
namespace app\common\model;

use think\Model;

class AppUserModel extends Model
{
	protected $autoWriteTimestamp='datetime';
	protected $updateTime = false;
	protected $dateFormat = "Y-m-d H:i:s";
	protected $field = true;

	public function school(){
		return $this->belongsTo('SchoolModel','schoolId','id')->field('name');
	}
}